//
//  JHTitleView.h
//  
//
//  Created by 谈Xx on 15/12/4.
//  Copyright © 2015年 谈Xx. All rights reserved.
//

#import <UIKit/UIKit.h>
@class JHTitleView;

@protocol JHTitleViewDelegate <NSObject>

@optional
- (void)jhTitleView:(JHTitleView *)titleView clickBackButton:(UIButton *)backbtn;
- (void)jhTitleView:(JHTitleView *)titleView clickRightButton:(UIButton *)rightbtn;
@end

typedef NS_ENUM(NSInteger,JHTitleType) {
    JHTitleTypeNone,           // 无
    JHTitleTypeRight,          // 右边一个按钮
    JHTitleTypeCustomSet,     //自定义
};


@interface JHTitleView : UIView
@property (nonatomic, weak) id<JHTitleViewDelegate> delegate;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, weak) UILabel *titleLabel;

@property (nonatomic, weak) UIButton *btnBack;
@property (nonatomic, weak) UIButton *rightBtn;


/**
 *  是否是首页 需要隐藏back
 */
@property (nonatomic, assign) BOOL isHidebtnBack;

@property (nonatomic, assign) JHTitleType titleType;

@end
